package com.service;

import com.model.Product;
import com.page.GenericPage;
import com.page.Page;
import com.po.ProductModifyPO;
import com.po.ProductPO;
import com.po.ProductQueryPO;
import com.result.Result;
import com.vo.ProductQueryBySnVo;

import java.util.List;

/**
 * @Author: chihaojie
 * @Date: 2019/5/29 14:53
 * @Version 1.0
 * @Note
 */
public interface ProductService {


    Result<Product> save(ProductPO productPO);

    Result<Boolean> removeById(Long id);

    Result<Boolean> modifyById(ProductModifyPO productModifyPO);

    Result<GenericPage<Product>> queryAll(ProductQueryPO productQueryPO);

    Result<Product> queryById(Long id);

    Result<List<ProductQueryBySnVo>> queryBySn(String sn);
}
